import { IgoodList } from '@/types/goods'
import request from './request'


// 商品列表
export const goodList = (list:IgoodList) => {
    return request.get('/api/goods',{params:list})
}
// 商品详情页
export const detail = (good:number) => {
    return request.get('/api/goods/'+good)
}
// 收藏
export const collect = (id:number) => {
    return request.post('/api/collects/goods/'+id)
}